package com.xhui.reggie.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Data;
import org.apache.ibatis.annotations.Insert;

/**
 * @TableName address_book
 */
@TableName(value ="address_book")
@Data
public class AddressBook implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    private Long userId; // 用户id

    private String consignee; //收货人

    private Integer sex;

    private String phone;

    private String provinceCode; // 省份代码

    private String provinceName;

    private String cityCode;

    private String cityName;

    private String districtCode; // 地区代码

    private String districtName;

    private String detail; // 详细

    private String label; // 标签

    private Integer isDefault;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @TableField(fill = FieldFill.INSERT)
    private Long createUser;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateUser;

    @TableField(exist = false)
    private Integer isDeleted;

}